<!-- base.html -->
{# Load the tag Library #}
{% load bootstrap4 %}

{# Load CSS and JavaScript #}
{% bootstrap_css %}
{% bootstrap_javascript jquery='full'%}

{# Display django.contrib.messages as Bootstrap alerts #}
{% bootstrap_messages %}

<div style="text-align:center;">
    <h1 style = "margin: auto; width: 50%;">开放职位</h1>
</div>

{% block header %}
    <a href="/" style="text-decoration: none;color: #007bff">首页</a>
    <a href="/joblist" style="text-decoration: none;color: #007bff">职位列表</a>

    {% if user.is_authenticated %}
    <a href="/accounts/logout" style="text-decoration: none;color: #007bff">退出</a>
    {% else %}
    <a href="/accounts/login" style="text-decoration: none;color: #007bff">退出</a>
    {% endif %}

    {% if user.is_authenticated %}
    <p>终于等到你 {{ user.username }} ，期待加入我们，共同探索世界！</p>
    {% else %}
    <p>欢迎你，期待加入我们，登陆后可以投递简历</p>
    {% endif %}

{% endblock %}

<hr>

{% block content %}
{% endblock %}